The following example uses the GUID property to return the globally unique ID number for the specified Reference object in the specified project.
Debug.Print Application.VBE.VBProjects(1).References(1).GUID